<template>
  <div>
    <h2 @click="showName">学校名称:{{name}}</h2>
    <h2>学校地址:{{address}}</h2>
  </div>
</template>

<script>
//引入一个mixin混合
// import {mixin} from '@/mixin'
export default {
  name: "School",
  data(){
    return{
      name:'武威职业学院',
      address:'武威市凉州区皇台路'
    }
  },
  // mixins:[mixin]
/*  methods:{
    showName(){
      alert(this.name)
    }
  }*/
}
</script>

<style scoped>

</style>